package cn.iocoder.yudao.module.ems.controller.admin.warehousing.vo;

import lombok.*;
import java.util.*;
import io.swagger.annotations.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 入库记录 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class WarehousingBaseVO {

    @ApiModelProperty(value = "入库单号", required = true)
    @NotNull(message = "入库单号不能为空")
    private String number;

    @ApiModelProperty(value = "入库时间", required = true)
    @NotNull(message = "入库时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date time;

    @ApiModelProperty(value = "入库类型", required = true)
    @NotNull(message = "入库类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "入库人id", required = true)
    @NotNull(message = "入库人id不能为空")
    private Long warehouser;

    @ApiModelProperty(value = "归还人id")
    private Long returnee;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "状态不能为空")
    private Integer status;

}
